package beer.model.domain;

public class Beer {
	private String beerId;
	private String beerName;
	private String beerNameEng;
	private String country;
	private String countryEng;
	private String brand;
	private String brandEng;
	private String beerType; //Lager, Ale, Wheat, ...
	private String alcoholDegree; //상, 중, 하 분류
	private String beerColor; 
	private String beerFlavor;
	private String beerPrice; //상, 중, 하 분류
	private String beerExplanation;
	private String etc;
	
	public Beer() {}
	//not null 변수 생성자
	public Beer(String beerId, String beerName, String beerNameEng,
			String country, String countryEng, String brand, String brandEng,
			String beerType, String alcoholDegree, String beerColor) {
		this.beerId = beerId;
		this.beerName = beerName;
		this.beerNameEng = beerNameEng;
		this.country = country;
		this.countryEng = countryEng;
		this.brand = brand;
		this.brandEng = brandEng;
		this.beerType = beerType;
		this.alcoholDegree = alcoholDegree;
		this.beerColor = beerColor;
	}
	public Beer(String beerId, String beerName, String beerNameEng,
			String country, String countryEng, String brand, String brandEng,
			String beerType, String alcoholDegree, String beerColor,
			String beerFlavor, String beerPrice, String beerExplanation,
			String etc) {
		this.beerId = beerId;
		this.beerName = beerName;
		this.beerNameEng = beerNameEng;
		this.country = country;
		this.countryEng = countryEng;
		this.brand = brand;
		this.brandEng = brandEng;
		this.beerType = beerType;
		this.alcoholDegree = alcoholDegree;
		this.beerColor = beerColor;
		this.beerFlavor = beerFlavor;
		this.beerPrice = beerPrice;
		this.beerExplanation = beerExplanation;
		this.etc = etc;
	}
	public String getBeerId() {
		return beerId;
	}
	public void setBeerId(String beerId) {
		this.beerId = beerId;
	}
	public String getBeerName() {
		return beerName;
	}
	public void setBeerName(String beerName) {
		this.beerName = beerName;
	}
	public String getBeerNameEng() {
		return beerNameEng;
	}
	public void setBeerNameEng(String beerNameEng) {
		this.beerNameEng = beerNameEng;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getCountryEng() {
		return countryEng;
	}
	public void setCountryEng(String countryEng) {
		this.countryEng = countryEng;
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public String getBrandEng() {
		return brandEng;
	}
	public void setBrandEng(String brandEng) {
		this.brandEng = brandEng;
	}
	public String getBeerType() {
		return beerType;
	}
	public void setBeerType(String beerType) {
		this.beerType = beerType;
	}
	public String getAlcoholDegree() {
		return alcoholDegree;
	}
	public void setAlcoholDegree(String alcoholDegree) {
		this.alcoholDegree = alcoholDegree;
	}
	public String getBeerColor() {
		return beerColor;
	}
	public void setBeerColor(String beerColor) {
		this.beerColor = beerColor;
	}
	public String getBeerFlavor() {
		return beerFlavor;
	}
	public void setBeerFlavor(String beerFlavor) {
		this.beerFlavor = beerFlavor;
	}
	public String getBeerPrice() {
		return beerPrice;
	}
	public void setBeerPrice(String beerPrice) {
		this.beerPrice = beerPrice;
	}
	public String getBeerExplanation() {
		return beerExplanation;
	}
	public void setBeerExplanation(String beerExplanation) {
		this.beerExplanation = beerExplanation;
	}
	public String getEtc() {
		return etc;
	}
	public void setEtc(String etc) {
		this.etc = etc;
	}
	@Override
	public String toString() {
		return "Beer [beerId=" + beerId + ", beerName=" + beerName
				+ ", beerNameEng=" + beerNameEng + ", country=" + country
				+ ", countryEng=" + countryEng + ", brand=" + brand
				+ ", brandEng=" + brandEng + ", beerType=" + beerType
				+ ", alcoholDegree=" + alcoholDegree + ", beerColor="
				+ beerColor + ", beerFlavor=" + beerFlavor + ", beerPrice="
				+ beerPrice + ", beerExplanation=" + beerExplanation + ", etc="
				+ etc + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((alcoholDegree == null) ? 0 : alcoholDegree.hashCode());
		result = prime * result
				+ ((beerColor == null) ? 0 : beerColor.hashCode());
		result = prime * result
				+ ((beerExplanation == null) ? 0 : beerExplanation.hashCode());
		result = prime * result
				+ ((beerFlavor == null) ? 0 : beerFlavor.hashCode());
		result = prime * result + ((beerId == null) ? 0 : beerId.hashCode());
		result = prime * result
				+ ((beerName == null) ? 0 : beerName.hashCode());
		result = prime * result
				+ ((beerNameEng == null) ? 0 : beerNameEng.hashCode());
		result = prime * result
				+ ((beerPrice == null) ? 0 : beerPrice.hashCode());
		result = prime * result
				+ ((beerType == null) ? 0 : beerType.hashCode());
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
		result = prime * result
				+ ((brandEng == null) ? 0 : brandEng.hashCode());
		result = prime * result + ((country == null) ? 0 : country.hashCode());
		result = prime * result
				+ ((countryEng == null) ? 0 : countryEng.hashCode());
		result = prime * result + ((etc == null) ? 0 : etc.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Beer other = (Beer) obj;
		if (alcoholDegree == null) {
			if (other.alcoholDegree != null)
				return false;
		} else if (!alcoholDegree.equals(other.alcoholDegree))
			return false;
		if (beerColor == null) {
			if (other.beerColor != null)
				return false;
		} else if (!beerColor.equals(other.beerColor))
			return false;
		if (beerExplanation == null) {
			if (other.beerExplanation != null)
				return false;
		} else if (!beerExplanation.equals(other.beerExplanation))
			return false;
		if (beerFlavor == null) {
			if (other.beerFlavor != null)
				return false;
		} else if (!beerFlavor.equals(other.beerFlavor))
			return false;
		if (beerId == null) {
			if (other.beerId != null)
				return false;
		} else if (!beerId.equals(other.beerId))
			return false;
		if (beerName == null) {
			if (other.beerName != null)
				return false;
		} else if (!beerName.equals(other.beerName))
			return false;
		if (beerNameEng == null) {
			if (other.beerNameEng != null)
				return false;
		} else if (!beerNameEng.equals(other.beerNameEng))
			return false;
		if (beerPrice == null) {
			if (other.beerPrice != null)
				return false;
		} else if (!beerPrice.equals(other.beerPrice))
			return false;
		if (beerType == null) {
			if (other.beerType != null)
				return false;
		} else if (!beerType.equals(other.beerType))
			return false;
		if (brand == null) {
			if (other.brand != null)
				return false;
		} else if (!brand.equals(other.brand))
			return false;
		if (brandEng == null) {
			if (other.brandEng != null)
				return false;
		} else if (!brandEng.equals(other.brandEng))
			return false;
		if (country == null) {
			if (other.country != null)
				return false;
		} else if (!country.equals(other.country))
			return false;
		if (countryEng == null) {
			if (other.countryEng != null)
				return false;
		} else if (!countryEng.equals(other.countryEng))
			return false;
		if (etc == null) {
			if (other.etc != null)
				return false;
		} else if (!etc.equals(other.etc))
			return false;
		return true;
	}
	
	
	
	
	
}
